package com.integration.maven.processor.annotation;


import com.integration.maven.processor.MyException;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.METHOD})// 作用域字段上
@Retention(RetentionPolicy.SOURCE)
public @interface Dto {

    // 忽略判断为null的字段
    String[] canNull() default "";

    // 当为null 时， 报错的exception
    Class exceptionClass() default MyException.class;

}
